package com.shire.shire_interface.model.stat;

import java.util.ArrayList;
import java.util.List;

public class CsSessionStatExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CsSessionStatExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCsidIsNull() {
            addCriterion("csId is null");
            return (Criteria) this;
        }

        public Criteria andCsidIsNotNull() {
            addCriterion("csId is not null");
            return (Criteria) this;
        }

        public Criteria andCsidEqualTo(Integer value) {
            addCriterion("csId =", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotEqualTo(Integer value) {
            addCriterion("csId <>", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidGreaterThan(Integer value) {
            addCriterion("csId >", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidGreaterThanOrEqualTo(Integer value) {
            addCriterion("csId >=", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidLessThan(Integer value) {
            addCriterion("csId <", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidLessThanOrEqualTo(Integer value) {
            addCriterion("csId <=", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidIn(List<Integer> values) {
            addCriterion("csId in", values, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotIn(List<Integer> values) {
            addCriterion("csId not in", values, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidBetween(Integer value1, Integer value2) {
            addCriterion("csId between", value1, value2, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotBetween(Integer value1, Integer value2) {
            addCriterion("csId not between", value1, value2, "csid");
            return (Criteria) this;
        }

        public Criteria andWxaccountIsNull() {
            addCriterion("wxAccount is null");
            return (Criteria) this;
        }

        public Criteria andWxaccountIsNotNull() {
            addCriterion("wxAccount is not null");
            return (Criteria) this;
        }

        public Criteria andWxaccountEqualTo(String value) {
            addCriterion("wxAccount =", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountNotEqualTo(String value) {
            addCriterion("wxAccount <>", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountGreaterThan(String value) {
            addCriterion("wxAccount >", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountGreaterThanOrEqualTo(String value) {
            addCriterion("wxAccount >=", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountLessThan(String value) {
            addCriterion("wxAccount <", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountLessThanOrEqualTo(String value) {
            addCriterion("wxAccount <=", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountLike(String value) {
            addCriterion("wxAccount like", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountNotLike(String value) {
            addCriterion("wxAccount not like", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountIn(List<String> values) {
            addCriterion("wxAccount in", values, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountNotIn(List<String> values) {
            addCriterion("wxAccount not in", values, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountBetween(String value1, String value2) {
            addCriterion("wxAccount between", value1, value2, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountNotBetween(String value1, String value2) {
            addCriterion("wxAccount not between", value1, value2, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andDtIsNull() {
            addCriterion("dt is null");
            return (Criteria) this;
        }

        public Criteria andDtIsNotNull() {
            addCriterion("dt is not null");
            return (Criteria) this;
        }

        public Criteria andDtEqualTo(String value) {
            addCriterion("dt =", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtNotEqualTo(String value) {
            addCriterion("dt <>", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtGreaterThan(String value) {
            addCriterion("dt >", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtGreaterThanOrEqualTo(String value) {
            addCriterion("dt >=", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtLessThan(String value) {
            addCriterion("dt <", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtLessThanOrEqualTo(String value) {
            addCriterion("dt <=", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtLike(String value) {
            addCriterion("dt like", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtNotLike(String value) {
            addCriterion("dt not like", value, "dt");
            return (Criteria) this;
        }

        public Criteria andDtIn(List<String> values) {
            addCriterion("dt in", values, "dt");
            return (Criteria) this;
        }

        public Criteria andDtNotIn(List<String> values) {
            addCriterion("dt not in", values, "dt");
            return (Criteria) this;
        }

        public Criteria andDtBetween(String value1, String value2) {
            addCriterion("dt between", value1, value2, "dt");
            return (Criteria) this;
        }

        public Criteria andDtNotBetween(String value1, String value2) {
            addCriterion("dt not between", value1, value2, "dt");
            return (Criteria) this;
        }

        public Criteria andFriendnumIsNull() {
            addCriterion("friendNum is null");
            return (Criteria) this;
        }

        public Criteria andFriendnumIsNotNull() {
            addCriterion("friendNum is not null");
            return (Criteria) this;
        }

        public Criteria andFriendnumEqualTo(Integer value) {
            addCriterion("friendNum =", value, "friendnum");
            return (Criteria) this;
        }

        public Criteria andFriendnumNotEqualTo(Integer value) {
            addCriterion("friendNum <>", value, "friendnum");
            return (Criteria) this;
        }

        public Criteria andFriendnumGreaterThan(Integer value) {
            addCriterion("friendNum >", value, "friendnum");
            return (Criteria) this;
        }

        public Criteria andFriendnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("friendNum >=", value, "friendnum");
            return (Criteria) this;
        }

        public Criteria andFriendnumLessThan(Integer value) {
            addCriterion("friendNum <", value, "friendnum");
            return (Criteria) this;
        }

        public Criteria andFriendnumLessThanOrEqualTo(Integer value) {
            addCriterion("friendNum <=", value, "friendnum");
            return (Criteria) this;
        }

        public Criteria andFriendnumIn(List<Integer> values) {
            addCriterion("friendNum in", values, "friendnum");
            return (Criteria) this;
        }

        public Criteria andFriendnumNotIn(List<Integer> values) {
            addCriterion("friendNum not in", values, "friendnum");
            return (Criteria) this;
        }

        public Criteria andFriendnumBetween(Integer value1, Integer value2) {
            addCriterion("friendNum between", value1, value2, "friendnum");
            return (Criteria) this;
        }

        public Criteria andFriendnumNotBetween(Integer value1, Integer value2) {
            addCriterion("friendNum not between", value1, value2, "friendnum");
            return (Criteria) this;
        }

        public Criteria andNewfriendnumIsNull() {
            addCriterion("newFriendNum is null");
            return (Criteria) this;
        }

        public Criteria andNewfriendnumIsNotNull() {
            addCriterion("newFriendNum is not null");
            return (Criteria) this;
        }

        public Criteria andNewfriendnumEqualTo(Integer value) {
            addCriterion("newFriendNum =", value, "newfriendnum");
            return (Criteria) this;
        }

        public Criteria andNewfriendnumNotEqualTo(Integer value) {
            addCriterion("newFriendNum <>", value, "newfriendnum");
            return (Criteria) this;
        }

        public Criteria andNewfriendnumGreaterThan(Integer value) {
            addCriterion("newFriendNum >", value, "newfriendnum");
            return (Criteria) this;
        }

        public Criteria andNewfriendnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("newFriendNum >=", value, "newfriendnum");
            return (Criteria) this;
        }

        public Criteria andNewfriendnumLessThan(Integer value) {
            addCriterion("newFriendNum <", value, "newfriendnum");
            return (Criteria) this;
        }

        public Criteria andNewfriendnumLessThanOrEqualTo(Integer value) {
            addCriterion("newFriendNum <=", value, "newfriendnum");
            return (Criteria) this;
        }

        public Criteria andNewfriendnumIn(List<Integer> values) {
            addCriterion("newFriendNum in", values, "newfriendnum");
            return (Criteria) this;
        }

        public Criteria andNewfriendnumNotIn(List<Integer> values) {
            addCriterion("newFriendNum not in", values, "newfriendnum");
            return (Criteria) this;
        }

        public Criteria andNewfriendnumBetween(Integer value1, Integer value2) {
            addCriterion("newFriendNum between", value1, value2, "newfriendnum");
            return (Criteria) this;
        }

        public Criteria andNewfriendnumNotBetween(Integer value1, Integer value2) {
            addCriterion("newFriendNum not between", value1, value2, "newfriendnum");
            return (Criteria) this;
        }

        public Criteria andInitivefriendnumIsNull() {
            addCriterion("initiveFriendNum is null");
            return (Criteria) this;
        }

        public Criteria andInitivefriendnumIsNotNull() {
            addCriterion("initiveFriendNum is not null");
            return (Criteria) this;
        }

        public Criteria andInitivefriendnumEqualTo(Integer value) {
            addCriterion("initiveFriendNum =", value, "initivefriendnum");
            return (Criteria) this;
        }

        public Criteria andInitivefriendnumNotEqualTo(Integer value) {
            addCriterion("initiveFriendNum <>", value, "initivefriendnum");
            return (Criteria) this;
        }

        public Criteria andInitivefriendnumGreaterThan(Integer value) {
            addCriterion("initiveFriendNum >", value, "initivefriendnum");
            return (Criteria) this;
        }

        public Criteria andInitivefriendnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("initiveFriendNum >=", value, "initivefriendnum");
            return (Criteria) this;
        }

        public Criteria andInitivefriendnumLessThan(Integer value) {
            addCriterion("initiveFriendNum <", value, "initivefriendnum");
            return (Criteria) this;
        }

        public Criteria andInitivefriendnumLessThanOrEqualTo(Integer value) {
            addCriterion("initiveFriendNum <=", value, "initivefriendnum");
            return (Criteria) this;
        }

        public Criteria andInitivefriendnumIn(List<Integer> values) {
            addCriterion("initiveFriendNum in", values, "initivefriendnum");
            return (Criteria) this;
        }

        public Criteria andInitivefriendnumNotIn(List<Integer> values) {
            addCriterion("initiveFriendNum not in", values, "initivefriendnum");
            return (Criteria) this;
        }

        public Criteria andInitivefriendnumBetween(Integer value1, Integer value2) {
            addCriterion("initiveFriendNum between", value1, value2, "initivefriendnum");
            return (Criteria) this;
        }

        public Criteria andInitivefriendnumNotBetween(Integer value1, Integer value2) {
            addCriterion("initiveFriendNum not between", value1, value2, "initivefriendnum");
            return (Criteria) this;
        }

        public Criteria andPassivefriendnumIsNull() {
            addCriterion("passiveFriendNum is null");
            return (Criteria) this;
        }

        public Criteria andPassivefriendnumIsNotNull() {
            addCriterion("passiveFriendNum is not null");
            return (Criteria) this;
        }

        public Criteria andPassivefriendnumEqualTo(Integer value) {
            addCriterion("passiveFriendNum =", value, "passivefriendnum");
            return (Criteria) this;
        }

        public Criteria andPassivefriendnumNotEqualTo(Integer value) {
            addCriterion("passiveFriendNum <>", value, "passivefriendnum");
            return (Criteria) this;
        }

        public Criteria andPassivefriendnumGreaterThan(Integer value) {
            addCriterion("passiveFriendNum >", value, "passivefriendnum");
            return (Criteria) this;
        }

        public Criteria andPassivefriendnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("passiveFriendNum >=", value, "passivefriendnum");
            return (Criteria) this;
        }

        public Criteria andPassivefriendnumLessThan(Integer value) {
            addCriterion("passiveFriendNum <", value, "passivefriendnum");
            return (Criteria) this;
        }

        public Criteria andPassivefriendnumLessThanOrEqualTo(Integer value) {
            addCriterion("passiveFriendNum <=", value, "passivefriendnum");
            return (Criteria) this;
        }

        public Criteria andPassivefriendnumIn(List<Integer> values) {
            addCriterion("passiveFriendNum in", values, "passivefriendnum");
            return (Criteria) this;
        }

        public Criteria andPassivefriendnumNotIn(List<Integer> values) {
            addCriterion("passiveFriendNum not in", values, "passivefriendnum");
            return (Criteria) this;
        }

        public Criteria andPassivefriendnumBetween(Integer value1, Integer value2) {
            addCriterion("passiveFriendNum between", value1, value2, "passivefriendnum");
            return (Criteria) this;
        }

        public Criteria andPassivefriendnumNotBetween(Integer value1, Integer value2) {
            addCriterion("passiveFriendNum not between", value1, value2, "passivefriendnum");
            return (Criteria) this;
        }

        public Criteria andSessionnumIsNull() {
            addCriterion("sessionNum is null");
            return (Criteria) this;
        }

        public Criteria andSessionnumIsNotNull() {
            addCriterion("sessionNum is not null");
            return (Criteria) this;
        }

        public Criteria andSessionnumEqualTo(Integer value) {
            addCriterion("sessionNum =", value, "sessionnum");
            return (Criteria) this;
        }

        public Criteria andSessionnumNotEqualTo(Integer value) {
            addCriterion("sessionNum <>", value, "sessionnum");
            return (Criteria) this;
        }

        public Criteria andSessionnumGreaterThan(Integer value) {
            addCriterion("sessionNum >", value, "sessionnum");
            return (Criteria) this;
        }

        public Criteria andSessionnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("sessionNum >=", value, "sessionnum");
            return (Criteria) this;
        }

        public Criteria andSessionnumLessThan(Integer value) {
            addCriterion("sessionNum <", value, "sessionnum");
            return (Criteria) this;
        }

        public Criteria andSessionnumLessThanOrEqualTo(Integer value) {
            addCriterion("sessionNum <=", value, "sessionnum");
            return (Criteria) this;
        }

        public Criteria andSessionnumIn(List<Integer> values) {
            addCriterion("sessionNum in", values, "sessionnum");
            return (Criteria) this;
        }

        public Criteria andSessionnumNotIn(List<Integer> values) {
            addCriterion("sessionNum not in", values, "sessionnum");
            return (Criteria) this;
        }

        public Criteria andSessionnumBetween(Integer value1, Integer value2) {
            addCriterion("sessionNum between", value1, value2, "sessionnum");
            return (Criteria) this;
        }

        public Criteria andSessionnumNotBetween(Integer value1, Integer value2) {
            addCriterion("sessionNum not between", value1, value2, "sessionnum");
            return (Criteria) this;
        }

        public Criteria andGroupreplynumIsNull() {
            addCriterion("groupReplyNum is null");
            return (Criteria) this;
        }

        public Criteria andGroupreplynumIsNotNull() {
            addCriterion("groupReplyNum is not null");
            return (Criteria) this;
        }

        public Criteria andGroupreplynumEqualTo(Integer value) {
            addCriterion("groupReplyNum =", value, "groupreplynum");
            return (Criteria) this;
        }

        public Criteria andGroupreplynumNotEqualTo(Integer value) {
            addCriterion("groupReplyNum <>", value, "groupreplynum");
            return (Criteria) this;
        }

        public Criteria andGroupreplynumGreaterThan(Integer value) {
            addCriterion("groupReplyNum >", value, "groupreplynum");
            return (Criteria) this;
        }

        public Criteria andGroupreplynumGreaterThanOrEqualTo(Integer value) {
            addCriterion("groupReplyNum >=", value, "groupreplynum");
            return (Criteria) this;
        }

        public Criteria andGroupreplynumLessThan(Integer value) {
            addCriterion("groupReplyNum <", value, "groupreplynum");
            return (Criteria) this;
        }

        public Criteria andGroupreplynumLessThanOrEqualTo(Integer value) {
            addCriterion("groupReplyNum <=", value, "groupreplynum");
            return (Criteria) this;
        }

        public Criteria andGroupreplynumIn(List<Integer> values) {
            addCriterion("groupReplyNum in", values, "groupreplynum");
            return (Criteria) this;
        }

        public Criteria andGroupreplynumNotIn(List<Integer> values) {
            addCriterion("groupReplyNum not in", values, "groupreplynum");
            return (Criteria) this;
        }

        public Criteria andGroupreplynumBetween(Integer value1, Integer value2) {
            addCriterion("groupReplyNum between", value1, value2, "groupreplynum");
            return (Criteria) this;
        }

        public Criteria andGroupreplynumNotBetween(Integer value1, Integer value2) {
            addCriterion("groupReplyNum not between", value1, value2, "groupreplynum");
            return (Criteria) this;
        }

        public Criteria andChatreplynumIsNull() {
            addCriterion("chatReplyNum is null");
            return (Criteria) this;
        }

        public Criteria andChatreplynumIsNotNull() {
            addCriterion("chatReplyNum is not null");
            return (Criteria) this;
        }

        public Criteria andChatreplynumEqualTo(Integer value) {
            addCriterion("chatReplyNum =", value, "chatreplynum");
            return (Criteria) this;
        }

        public Criteria andChatreplynumNotEqualTo(Integer value) {
            addCriterion("chatReplyNum <>", value, "chatreplynum");
            return (Criteria) this;
        }

        public Criteria andChatreplynumGreaterThan(Integer value) {
            addCriterion("chatReplyNum >", value, "chatreplynum");
            return (Criteria) this;
        }

        public Criteria andChatreplynumGreaterThanOrEqualTo(Integer value) {
            addCriterion("chatReplyNum >=", value, "chatreplynum");
            return (Criteria) this;
        }

        public Criteria andChatreplynumLessThan(Integer value) {
            addCriterion("chatReplyNum <", value, "chatreplynum");
            return (Criteria) this;
        }

        public Criteria andChatreplynumLessThanOrEqualTo(Integer value) {
            addCriterion("chatReplyNum <=", value, "chatreplynum");
            return (Criteria) this;
        }

        public Criteria andChatreplynumIn(List<Integer> values) {
            addCriterion("chatReplyNum in", values, "chatreplynum");
            return (Criteria) this;
        }

        public Criteria andChatreplynumNotIn(List<Integer> values) {
            addCriterion("chatReplyNum not in", values, "chatreplynum");
            return (Criteria) this;
        }

        public Criteria andChatreplynumBetween(Integer value1, Integer value2) {
            addCriterion("chatReplyNum between", value1, value2, "chatreplynum");
            return (Criteria) this;
        }

        public Criteria andChatreplynumNotBetween(Integer value1, Integer value2) {
            addCriterion("chatReplyNum not between", value1, value2, "chatreplynum");
            return (Criteria) this;
        }

        public Criteria andMsgnumIsNull() {
            addCriterion("msgNum is null");
            return (Criteria) this;
        }

        public Criteria andMsgnumIsNotNull() {
            addCriterion("msgNum is not null");
            return (Criteria) this;
        }

        public Criteria andMsgnumEqualTo(Integer value) {
            addCriterion("msgNum =", value, "msgnum");
            return (Criteria) this;
        }

        public Criteria andMsgnumNotEqualTo(Integer value) {
            addCriterion("msgNum <>", value, "msgnum");
            return (Criteria) this;
        }

        public Criteria andMsgnumGreaterThan(Integer value) {
            addCriterion("msgNum >", value, "msgnum");
            return (Criteria) this;
        }

        public Criteria andMsgnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("msgNum >=", value, "msgnum");
            return (Criteria) this;
        }

        public Criteria andMsgnumLessThan(Integer value) {
            addCriterion("msgNum <", value, "msgnum");
            return (Criteria) this;
        }

        public Criteria andMsgnumLessThanOrEqualTo(Integer value) {
            addCriterion("msgNum <=", value, "msgnum");
            return (Criteria) this;
        }

        public Criteria andMsgnumIn(List<Integer> values) {
            addCriterion("msgNum in", values, "msgnum");
            return (Criteria) this;
        }

        public Criteria andMsgnumNotIn(List<Integer> values) {
            addCriterion("msgNum not in", values, "msgnum");
            return (Criteria) this;
        }

        public Criteria andMsgnumBetween(Integer value1, Integer value2) {
            addCriterion("msgNum between", value1, value2, "msgnum");
            return (Criteria) this;
        }

        public Criteria andMsgnumNotBetween(Integer value1, Integer value2) {
            addCriterion("msgNum not between", value1, value2, "msgnum");
            return (Criteria) this;
        }

        public Criteria andGroupmsgnumIsNull() {
            addCriterion("groupMsgNum is null");
            return (Criteria) this;
        }

        public Criteria andGroupmsgnumIsNotNull() {
            addCriterion("groupMsgNum is not null");
            return (Criteria) this;
        }

        public Criteria andGroupmsgnumEqualTo(Integer value) {
            addCriterion("groupMsgNum =", value, "groupmsgnum");
            return (Criteria) this;
        }

        public Criteria andGroupmsgnumNotEqualTo(Integer value) {
            addCriterion("groupMsgNum <>", value, "groupmsgnum");
            return (Criteria) this;
        }

        public Criteria andGroupmsgnumGreaterThan(Integer value) {
            addCriterion("groupMsgNum >", value, "groupmsgnum");
            return (Criteria) this;
        }

        public Criteria andGroupmsgnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("groupMsgNum >=", value, "groupmsgnum");
            return (Criteria) this;
        }

        public Criteria andGroupmsgnumLessThan(Integer value) {
            addCriterion("groupMsgNum <", value, "groupmsgnum");
            return (Criteria) this;
        }

        public Criteria andGroupmsgnumLessThanOrEqualTo(Integer value) {
            addCriterion("groupMsgNum <=", value, "groupmsgnum");
            return (Criteria) this;
        }

        public Criteria andGroupmsgnumIn(List<Integer> values) {
            addCriterion("groupMsgNum in", values, "groupmsgnum");
            return (Criteria) this;
        }

        public Criteria andGroupmsgnumNotIn(List<Integer> values) {
            addCriterion("groupMsgNum not in", values, "groupmsgnum");
            return (Criteria) this;
        }

        public Criteria andGroupmsgnumBetween(Integer value1, Integer value2) {
            addCriterion("groupMsgNum between", value1, value2, "groupmsgnum");
            return (Criteria) this;
        }

        public Criteria andGroupmsgnumNotBetween(Integer value1, Integer value2) {
            addCriterion("groupMsgNum not between", value1, value2, "groupmsgnum");
            return (Criteria) this;
        }

        public Criteria andChatmsgnumIsNull() {
            addCriterion("chatMsgNum is null");
            return (Criteria) this;
        }

        public Criteria andChatmsgnumIsNotNull() {
            addCriterion("chatMsgNum is not null");
            return (Criteria) this;
        }

        public Criteria andChatmsgnumEqualTo(Integer value) {
            addCriterion("chatMsgNum =", value, "chatmsgnum");
            return (Criteria) this;
        }

        public Criteria andChatmsgnumNotEqualTo(Integer value) {
            addCriterion("chatMsgNum <>", value, "chatmsgnum");
            return (Criteria) this;
        }

        public Criteria andChatmsgnumGreaterThan(Integer value) {
            addCriterion("chatMsgNum >", value, "chatmsgnum");
            return (Criteria) this;
        }

        public Criteria andChatmsgnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("chatMsgNum >=", value, "chatmsgnum");
            return (Criteria) this;
        }

        public Criteria andChatmsgnumLessThan(Integer value) {
            addCriterion("chatMsgNum <", value, "chatmsgnum");
            return (Criteria) this;
        }

        public Criteria andChatmsgnumLessThanOrEqualTo(Integer value) {
            addCriterion("chatMsgNum <=", value, "chatmsgnum");
            return (Criteria) this;
        }

        public Criteria andChatmsgnumIn(List<Integer> values) {
            addCriterion("chatMsgNum in", values, "chatmsgnum");
            return (Criteria) this;
        }

        public Criteria andChatmsgnumNotIn(List<Integer> values) {
            addCriterion("chatMsgNum not in", values, "chatmsgnum");
            return (Criteria) this;
        }

        public Criteria andChatmsgnumBetween(Integer value1, Integer value2) {
            addCriterion("chatMsgNum between", value1, value2, "chatmsgnum");
            return (Criteria) this;
        }

        public Criteria andChatmsgnumNotBetween(Integer value1, Integer value2) {
            addCriterion("chatMsgNum not between", value1, value2, "chatmsgnum");
            return (Criteria) this;
        }

        public Criteria andChatfriendnumIsNull() {
            addCriterion("chatFriendNum is null");
            return (Criteria) this;
        }

        public Criteria andChatfriendnumIsNotNull() {
            addCriterion("chatFriendNum is not null");
            return (Criteria) this;
        }

        public Criteria andChatfriendnumEqualTo(Integer value) {
            addCriterion("chatFriendNum =", value, "chatfriendnum");
            return (Criteria) this;
        }

        public Criteria andChatfriendnumNotEqualTo(Integer value) {
            addCriterion("chatFriendNum <>", value, "chatfriendnum");
            return (Criteria) this;
        }

        public Criteria andChatfriendnumGreaterThan(Integer value) {
            addCriterion("chatFriendNum >", value, "chatfriendnum");
            return (Criteria) this;
        }

        public Criteria andChatfriendnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("chatFriendNum >=", value, "chatfriendnum");
            return (Criteria) this;
        }

        public Criteria andChatfriendnumLessThan(Integer value) {
            addCriterion("chatFriendNum <", value, "chatfriendnum");
            return (Criteria) this;
        }

        public Criteria andChatfriendnumLessThanOrEqualTo(Integer value) {
            addCriterion("chatFriendNum <=", value, "chatfriendnum");
            return (Criteria) this;
        }

        public Criteria andChatfriendnumIn(List<Integer> values) {
            addCriterion("chatFriendNum in", values, "chatfriendnum");
            return (Criteria) this;
        }

        public Criteria andChatfriendnumNotIn(List<Integer> values) {
            addCriterion("chatFriendNum not in", values, "chatfriendnum");
            return (Criteria) this;
        }

        public Criteria andChatfriendnumBetween(Integer value1, Integer value2) {
            addCriterion("chatFriendNum between", value1, value2, "chatfriendnum");
            return (Criteria) this;
        }

        public Criteria andChatfriendnumNotBetween(Integer value1, Integer value2) {
            addCriterion("chatFriendNum not between", value1, value2, "chatfriendnum");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}